package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the REPAIR_PARTS database table.
 * 
 */
@Entity
@Table(name="REPAIR_PARTS")
@NamedQuery(name="RepairPart.findAll", query="SELECT r FROM RepairPart r")
public class RepairPart implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="REPAIR_PARTS_REPAIRPARTSID_GENERATOR", sequenceName="SEQ_41")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="REPAIR_PARTS_REPAIRPARTSID_GENERATOR")
	@Column(name="REPAIR_PARTS_ID")
	private long repairPartsId;

	@Column(name="REPAIR_PARTS_ALLMONEY")
	private BigDecimal repairPartsAllmoney;

	@Column(name="REPAIR_PARTS_MODEL")
	private String repairPartsModel;

	@Column(name="REPAIR_PARTS_NAME")
	private String repairPartsName;

	@Column(name="REPAIR_PARTS_NUM")
	private BigDecimal repairPartsNum;

	@Column(name="REPAIR_PARTS_PRICE")
	private BigDecimal repairPartsPrice;

	@Column(name="REPAIR_PARTS_REMARKS")
	private String repairPartsRemarks;

	@Column(name="REPAIR_PARTS_STANDARD")
	private String repairPartsStandard;

	@Column(name="REPAIR_PARTS_UNIT")
	private String repairPartsUnit;

	//bi-directional many-to-one association to DetailRepair
	@ManyToOne
	@JoinColumn(name="R_DETAIL_REPAIR_ID")
	private DetailRepair detailRepair;

	public RepairPart() {
	}

	public long getRepairPartsId() {
		return this.repairPartsId;
	}

	public void setRepairPartsId(long repairPartsId) {
		this.repairPartsId = repairPartsId;
	}

	public BigDecimal getRepairPartsAllmoney() {
		return this.repairPartsAllmoney;
	}

	public void setRepairPartsAllmoney(BigDecimal repairPartsAllmoney) {
		this.repairPartsAllmoney = repairPartsAllmoney;
	}

	public String getRepairPartsModel() {
		return this.repairPartsModel;
	}

	public void setRepairPartsModel(String repairPartsModel) {
		this.repairPartsModel = repairPartsModel;
	}

	public String getRepairPartsName() {
		return this.repairPartsName;
	}

	public void setRepairPartsName(String repairPartsName) {
		this.repairPartsName = repairPartsName;
	}

	public BigDecimal getRepairPartsNum() {
		return this.repairPartsNum;
	}

	public void setRepairPartsNum(BigDecimal repairPartsNum) {
		this.repairPartsNum = repairPartsNum;
	}

	public BigDecimal getRepairPartsPrice() {
		return this.repairPartsPrice;
	}

	public void setRepairPartsPrice(BigDecimal repairPartsPrice) {
		this.repairPartsPrice = repairPartsPrice;
	}

	public String getRepairPartsRemarks() {
		return this.repairPartsRemarks;
	}

	public void setRepairPartsRemarks(String repairPartsRemarks) {
		this.repairPartsRemarks = repairPartsRemarks;
	}

	public String getRepairPartsStandard() {
		return this.repairPartsStandard;
	}

	public void setRepairPartsStandard(String repairPartsStandard) {
		this.repairPartsStandard = repairPartsStandard;
	}

	public String getRepairPartsUnit() {
		return this.repairPartsUnit;
	}

	public void setRepairPartsUnit(String repairPartsUnit) {
		this.repairPartsUnit = repairPartsUnit;
	}

	public DetailRepair getDetailRepair() {
		return this.detailRepair;
	}

	public void setDetailRepair(DetailRepair detailRepair) {
		this.detailRepair = detailRepair;
	}
	
	

}